package com.neusoft.ch7.hw.test05.demo4;

public class Apple extends Fruit {
	private String fuitName;

	public Apple(String fuitName) {
		super();
		this.fuitName = fuitName;
	}

	public String getFuitName() {
		return fuitName;
	}

	public void setFuitName(String fuitName) {
		this.fuitName = fuitName;
	}

	@Override
	public Fruit fetchFruit() {
		// 创建一个苹果对象
		Apple apple = new Apple("红富士");
		System.out.println("摘了一个苹果对象...");
		// 返回值
		return apple;
	}

}
